from django.contrib import admin
from django.urls import path, include
from rest_framework.routers import SimpleRouter

from . import views

urlpatterns = [
    #单个结果
    path('index1/',views.IndexView2.as_view()),
    #搜索页面
    path('',views.IndexSearchView.as_view()),
]
router=SimpleRouter()
# 豆瓣链接Api
router.register('index',views.IndexView,base_name='index')
urlpatterns +=router.urls